package com.partvoyage.client.mvp2.view.ligneTemporelle;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.HasWidgets;
import com.partvoyage.client.mvp2.framework.MVPDisplay;
import com.partvoyage.client.mvp2.framework.MVPPresenter;
import com.partvoyage.client.service.projet.ProjetService;
import com.partvoyage.client.service.projet.ProjetServiceAsync;
import com.smartgwt.client.widgets.Canvas;

public class LigneTemporellePresenter extends
		MVPPresenter<LigneTemporellePresenter.Display> {
	protected final ProjetServiceAsync projetService = GWT
			.create(ProjetService.class);

	public interface Display extends MVPDisplay {

	}

	public LigneTemporellePresenter(final Display display,
			final HandlerManager eventBus) {
		super(display, eventBus);
		bind();
	}

	protected void bind() {

	}

	@Override
	public void go(final HasWidgets container) {
		container.clear();
		container.add(display.asWidget());
	}

	public void go(Canvas container) {
		container.clear();
		container.addChild(display.asWidget());
	}

	@Override
	protected void registerHandler() {
		// TODO Auto-generated method stub

	}

}
